package com.design.decorator;

/**
 * @author leali
 * @title: ComponentDecorator
 * @projectName design
 * @description: 构件装饰类：抽象装饰类
 * @date 2022/1/2 23:13
 */
public class ComponentDecorator extends Component {
    private final Component component;

    public ComponentDecorator(Component component) {
        this.component = component;
    }

    @Override
    public void display() {
        component.display();
    }
}
